import requests from "@/utils/request";

export function getGoodList() {
    return requests({
        url: '/system/good/goodList',
        method: 'get'
    })
}

export function getGoodInfo(goodId) {
    return requests({
        url: '/system/good/getGood/' + goodId,
        method: 'get'
    })
}

export function seckill(user_id, good_id) {
    return requests({
        url: '/system/good/seckill',
        method: 'post',
        data: {
            user_id,
            good_id
        }
    })
}